using System;
using System.Security.Cryptography;
using System.IO;

namespace NET.Library.Security.Cryptography
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
		public class SHA1
		{
			/// <summary>
			/// 
			/// </summary>
			/// <param name="Data"></param>
			/// <returns></returns>
			public static byte[] Encrypt(byte[] Data)
			{
				SHA1CryptoServiceProvider sha =  new SHA1CryptoServiceProvider();
                try
                {
                    return sha.ComputeHash(Data);
                }
                finally
                {
                    sha.Clear();
                    sha = null;
                }
			}
		}
	}
